﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace WebUI.Models.Tables
{
    [Table("Navs")]
    public partial class Nav : BaseModel
    {
        /// <summary>
        /// 导航名称
        /// </summary>
        [Column, DisplayName("导航名称")]
        public string NavName { get; set; }
        /// <summary>
        /// 链接地址
        /// </summary>
        [Column, DisplayName("链接地址")]
        public string NavUrl { get; set; }
        /// <summary>
        /// 上级ID
        /// </summary>
        [Column, DisplayName("上级导航")]
        public int ParentID { get; set; }
        /// <summary>
        /// 导航位置
        /// </summary>
        [Column, DisplayName("导航位置")]
        public NavPosition NavPosition { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Column, DisplayName("排序")]
        public int Sort { get; set; }
    }

    public enum NavPosition
    {
        主导航,
        顶部,
        底部
    }
}